/*
 * $Id: AccessorPermissionAdapter.java,v 1.1 2006/10/12 04:31:19 ��ҷ� Exp $
 */
package com.sys.menu;

import java.util.regex.Pattern;

import net.sf.navigator.menu.MenuComponent;
import net.sf.navigator.menu.PermissionsAdapter;

/**
 * menu
 * @author 
 * @version $Revision: 1.1 $
 */
public class AccessorPermissionAdapter implements PermissionsAdapter {
	private Pattern delimiters = Pattern.compile("(?<!\\\\),");

	/**
	 * @see net.sf.navigator.menu.PermissionsAdapter#isAllowed(net.sf.navigator.menu.MenuComponent)
	 */
	public boolean isAllowed(MenuComponent menu) {
		if (menu.getRoles() == null) {
			return true;
		}
		return false;
	}

}
